<script setup lang="ts">
import { useForm } from '#/hooks/useForm';

const [myForm] = useForm({
  schema: [
    {
      component: 'Input',
      componentProps: { placeholder: '请输入用户名' },
      label: '用户名',
      fieldName: 'username',
    },
    {
      component: 'InputPassword',
      componentProps: { placeholder: '请输入密码' },
      label: '密码',
      fieldName: 'password',
    },
  ],
});
</script>
<template>
  <myForm />
</template>
